package com.lh.postern.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.lh.mapper.PicMapper;
import com.lh.pojo.Pic;
import com.lh.postern.service.IPicService;

@Service
public class PicServiceImpl implements IPicService{
	
	
	
	@Resource
	PicMapper picMapper;
	
	@Override
	public int insertPic(Pic pic) {
		return picMapper.insPic(pic);
	}

	@Override
	public List<Pic> findAll() {
		return picMapper.findAll();
	}

	@Override
	public int deletePic(int id) {
		return picMapper.delPic(id);
	}
	
	
	
}
